 var adminViewData = {
			request: {
				loginName: "",
				pageSize: null,
				pageIndex: null
			},
			columns: [
				{
                    type: 'selection',
                    width: 60,
                    align: 'center'
                },{
                    title: '登录名',
                    key: 'userName'
                }, {
                    title: '昵称',
                    key: 'nickName'
                }, {
                    title: '最后登录时间',
                    key: 'lastLoginTime',
                    sortable: true
                }, {
                    title: '操作',
                    key: 'action',
                    render () {
                        return '<i-button type="text" size="small">查看</i-button><i-button type="text" size="small">编辑</i-button>';
                    }
                }
			],
			list: []
		};
    var adminContainer = new Vue({
		el: '#container',
		data: function() {
			return adminViewData;
		},
		methods: {
			changePage: function(page){
				var vm = this;
				vm.request.pageSize = vm.$refs.page.pageSize;
				vm.request.pageIndex = page - 1;
				vm.$http.post('/erp/admin/query', JSON.stringify(vm.request)).then((response) => {
					var res = response.data;
					if(res.content) {
						vm.list = res.content;
					} 
				}, function(err) {});
			},
			search: function(){
				this.changePage(this.$refs.page.current);
			}
		}
	});
